package com.youdoneed.friends.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.friends.model.FaceSearch;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QFaceSearch is a Querydsl query type for FaceSearch
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QFaceSearch extends com.querydsl.sql.RelationalPathBase<FaceSearch> {

    private static final long serialVersionUID = 1414392542;

    public static final QFaceSearch FaceSearch = new QFaceSearch("FaceSearch");

    public final StringPath facePicUrl = createString("facePicUrl");

    public final NumberPath<Double> latitude = createNumber("latitude", Double.class);

    public final NumberPath<Double> longitude = createNumber("longitude", Double.class);

    public final StringPath msg = createString("msg");

    public final StringPath place = createString("place");

    public final StringPath searchId = createString("searchId");

    public final DateTimePath<java.util.Date> searchTime = createDateTime("searchTime", java.util.Date.class);

    public final NumberPath<Integer> searchType = createNumber("searchType", Integer.class);

    public final StringPath userId = createString("userId");

    public final com.querydsl.sql.PrimaryKey<FaceSearch> primary = createPrimaryKey(searchId);

    public QFaceSearch(String variable) {
        super(FaceSearch.class, forVariable(variable), "null", "FaceSearch");
        addMetadata();
    }

    public QFaceSearch(String variable, String schema, String table) {
        super(FaceSearch.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QFaceSearch(String variable, String schema) {
        super(FaceSearch.class, forVariable(variable), schema, "FaceSearch");
        addMetadata();
    }

    public QFaceSearch(Path<? extends FaceSearch> path) {
        super(path.getType(), path.getMetadata(), "null", "FaceSearch");
        addMetadata();
    }

    public QFaceSearch(PathMetadata metadata) {
        super(FaceSearch.class, metadata, "null", "FaceSearch");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(facePicUrl, ColumnMetadata.named("face_pic_url").withIndex(3).ofType(Types.VARCHAR).withSize(200));
        addMetadata(latitude, ColumnMetadata.named("latitude").withIndex(6).ofType(Types.DOUBLE).withSize(22));
        addMetadata(longitude, ColumnMetadata.named("longitude").withIndex(5).ofType(Types.DOUBLE).withSize(22));
        addMetadata(msg, ColumnMetadata.named("msg").withIndex(4).ofType(Types.VARCHAR).withSize(200));
        addMetadata(place, ColumnMetadata.named("place").withIndex(7).ofType(Types.VARCHAR).withSize(50));
        addMetadata(searchId, ColumnMetadata.named("search_id").withIndex(1).ofType(Types.VARCHAR).withSize(32).notNull());
        addMetadata(searchTime, ColumnMetadata.named("search_time").withIndex(8).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(searchType, ColumnMetadata.named("search_type").withIndex(9).ofType(Types.INTEGER).withSize(10));
        addMetadata(userId, ColumnMetadata.named("user_id").withIndex(2).ofType(Types.VARCHAR).withSize(32).notNull());
    }

}

